<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * -----------------------------------------------------
 *
 * manage Region 地区管理
 *
 * @package     manage
 * @subpackage  
 * @category    Region
 * @author      ChenFu
 * @since       2014-7-25 version 1.0       
 * -----------------------------------------------------    
 */
class Region extends CI_Controller{

	public function __construct(){
		parent::__construct();
		$this->load->helper('url');
		$this->load->model('region_model'); 
		// 检查是否登录
		check_login();
	}

	/**
	 * [getcity 根据父级id获取城市列表]
	 * @return [array] [description]
	 */
	public function getcity(){
		$pid   = intval($this->input->get('id')); // 取整
		$data = $this->region_model->get_datelist_option($pid);
		die($data);
	}
}